# Contributor: Sergiy Stupar <owner@sestolab.pp.ua>
# Maintainer: Sergiy Stupar <owner@sestolab.pp.ua>
pkgname=ueberzug
pkgver=18.2.3
pkgrel=0
pkgdesc="Command line util which allows one to draw images on terminals by using child windows"
url="https://github.com/ueber-devel/ueberzug"
arch="all"
license="GPL-3.0-or-later"
depends="
	py3-attrs
	py3-docopt
	py3-pillow
	"
makedepends="
	libxext-dev
	libxres-dev
	py3-gpep517
	py3-setuptools
	py3-wheel
	python3-dev
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/ueber-devel/ueberzug/archive/$pkgver.tar.gz"
options="!check" # No tests

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
6f8f342b4a593e857f70c053fc5b9e75bc2c3a063221ca64850acb8c325323bee50c9d471fe55de6bbb484d8c958d5bf3037e836b52734d617f1cea4be509a08  ueberzug-18.2.3.tar.gz
"
